# coding:utf8

from project import JsonHandleObject
from .pack.config_object import ConfigSipMachine
from .var import Path, get_pc_name
from log import logger

jsonhandleobj = JsonHandleObject(Path.config_path)
config_sipmachine: ConfigSipMachine = jsonhandleobj.load(ConfigSipMachine)
f_sipmachine_dump = lambda : jsonhandleobj.dump(config_sipmachine)
chrome_driver_path = Path.driverDict.get(get_pc_name())
logger.debug("pc name is:  {}".format(get_pc_name()))
logger.debug("***chrome path is : {}*****".format(chrome_driver_path))

pcname_self = get_pc_name()


__all__ = [
    pcname_self,
    config_sipmachine,
    f_sipmachine_dump.__name__,
    get_pc_name.__name__,
    chrome_driver_path,
    
]
